
      // 获取当前路由的子路由
 function routesInfo(_this){
        let routes = {
          children: _this.$router.options.routes
        };
        let route = _this.$route.matched;
        for(let i=0; i<route.length-1; i++){
          routes = routes.children.find((e) => (e.name == route[i].name));
        }
        console.log("routes=====",routes)
        return routes.children
    }
  export default {routesInfo}